package com.xsd.awen.web;

import com.xsd.awen.config.WebResult;
import com.xsd.awen.domain.vo.ViewVo;
import com.xsd.awen.service.ViewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("view")
public class ViewController {

    @Autowired
    ViewService viewService;

    @PostMapping("project")
    public String project(ViewVo vo){
        return WebResult.OK(viewService.project(vo));
    }

    @PostMapping("user")
    public String user(ViewVo vo){
        return WebResult.OK(viewService.user(vo));
    }

}